import request from '../request'
import qs from 'querystring'

/* 订单数据api */
function orderList(query) {
    return request({
        method: 'get',
        url: `orders` + '?' + qs.stringify(query),
    })
}
/* 物流api */
function orderWu(id) {
    return request({
        method: 'get',
        url: `/kuaidi/${id}`,
    })
}

/* echarts折线图 */
function chaImg() {
    return request({
        method: 'get',
        url: `reports/type/1`,
    })
}

export { orderList, orderWu, chaImg }